import request from '@/utils/request'

// 查询开票申请明细列表
export function listDrawBillDetail(query) {
  return request({
    url: '/module/drawBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询开票申请明细详细
export function getDrawBillDetail(id) {
  return request({
    url: '/module/drawBillDetail/' + id,
    method: 'get'
  })
}

// 新增开票申请明细
export function addDrawBillDetail(data) {
  return request({
    url: '/module/drawBillDetail',
    method: 'post',
    data: data
  })
}

// 修改开票申请明细
export function updateDrawBillDetail(data) {
  return request({
    url: '/module/drawBillDetail',
    method: 'put',
    data: data
  })
}

// 删除开票申请明细
export function delDrawBillDetail(id) {
  return request({
    url: '/module/drawBillDetail/' + id,
    method: 'delete'
  })
}
